package com.ynet.eq.haiqing.module.mqtt.impl.operator;

import com.ynet.eq.haiqing.module.mqtt.MqttMessageStrategy;
import org.eclipse.paho.client.mqttv3.MqttMessage;

/**
 * @author 胡超雄
 * @date 2021/7/7 14:39
 * @desc   8.1 远程开门 返回的消息策略处理类
 */
public class MqttMessageUnlock  extends MqttMessageStrategy {
    @Override
    public void processMessage(String s, MqttMessage message) {
        System.out.println("s的值为:"+s);
        String rtMessage = new String(message.getPayload());
        System.out.println("8.1 远程开门 返回的消息策略处理类");
        System.out.println("消息返回"+rtMessage);
    }
}
